Skip to content

[codex] fix layout engine edge case panics#32

Draft
ola-893 wants to merge 1 commit into
worka-ai:mainfrom
ola-893:fix/layout-engine-panics
Draft

[codex] fix layout engine edge case panics#32
ola-893 wants to merge 1 commit into
worka-ai:mainfrom
ola-893:fix/layout-engine-panics

Conversation

@ola-893
Copy link
Copy Markdown

@ola-893 ola-893 commented May 24, 2026

Summary

Fixes layout edge cases that could panic or collapse content unexpectedly.

  • Removes unsafe aspect-ratio unwraps
  • Preserves fixed child dimensions while still allowing default stretch behavior
  • Avoids missing-node unwraps in flex/grid layout paths
  • Makes the test text measurer tolerate zero available width
  • Re-enables and passes the SplitView width regression test

Why

The layout engine had a few unsafe assumptions around optional dimensions and graph lookups. Some of those assumptions showed up as panics; others made the SplitView regression fail once re-enabled.

Impact

Layout remains deterministic, but collapsed or partially-constrained children are handled more carefully. Fixed dimensions are no longer overwritten by tight parent constraints.

Validation

  • cargo test -p fission-layout --locked --offline -- --nocapture
  • cargo test -p fission-test --test interaction_and_layout_regressions test_email_list_width --locked --offline -- --nocapture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant